chore: add gitleaks config + allowlist#166
Merged
KailasMahavarkar merged 1 commit intomainfrom Apr 20, 2026
Merged
Conversation
Installed gitleaks + did full history scan (742 commits). 17 hits resolved into: * 2 hits (commits 5c54c9c and a654ac3): the OpenRouter key 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. Already revoked at openrouter.ai. History rewrite skipped deliberately (force-push main would break existing clones, and the key is dead). * 15 hits: Wikipedia HTML fixture dumps under tests/fixtures/html/*.html bundle wgConfirmEditHCaptchaSiteKey = 5d0c670e-a5f4-4258-ad16-... hCaptcha site keys are PUBLIC by design (served to every browser that loads Wikipedia). Gitleaks flags them as high-entropy but they are not secret. Added .gitleaks.toml with: - allowlist.paths: the HTML fixtures directory - allowlist.regexes: the specific revoked OpenRouter key Result after re-scan: 0 leaks. Future scans stay quiet. Run: gitleaks detect --source . --config .gitleaks.toml --no-banner Or in CI as a pre-push / pre-commit hook. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ran gitleaks on full history (742 commits). 17 hits, all resolved.
Real leak (1 key across 2 paths)
sk-or-v1-f5a29580...intools/finetune/training_config.json(commit 5c54c9c) and its old pathbenchmarks/finetune/training_config.json(commit a654ac3). Already revoked at openrouter.ai. History rewrite skipped deliberately (force-push to main breaks existing clones; key is dead).False positives (15 hits)
Wikipedia HTML dumps under
tests/fixtures/html/*.htmlbundlewgConfirmEditHCaptchaSiteKey = 5d0c670e-.... hCaptcha site keys are public by design (every browser that loads Wikipedia sees them). Gitleaks flags high entropy but they aren't secret.Config
.gitleaks.tomladds allowlist entries for:tests/fixtures/html/*.html)Test
Follow-up (optional)
.github/workflows/ci.ymltest job🤖 Generated with Claude Code